<?php 
$cs=Yii::app()->clientScript;
$cssUrl= Yii::app()->request->baseUrl."/css/";
$jsUrl = Yii::app()->request->baseUrl."/js/";
$cs->registerCssFile($cssUrl."ad_status_edit.css");
$cs->registerScriptFile($jsUrl."ad_status_edit.js");
?>
<div id="main-col" class="div">
	<div class="mainColInner">
		<div class="subPageHeader">
			<h1><?=Yii::t('adv','list')?></h1>
		</div>
		<?php if(count($dataProvider->data)){?>
		<div>
			<table class="base small manage">
				<thead>
					<tr class="tright">
						<th class="info"></th>
						<th class="tleft title"><?=Yii::t('adv','title_list')?></th>
						<th class="status"><?=Yii::t('adv','status')?></th>
						<th><?=Yii::t('adv','cpuv')?></th>
						<th><?=Yii::t('adv','imp.')?></th>
						<th><?=Yii::t('adv','click')?></th>
						<th><?=Yii::t('adv','ctr')?></th>
						<th><?=Yii::t('adv','uv')?></th>
						<th><?=Yii::t('adv','spent_list')?></th>
						<th><?=Yii::t('adv','date_create')?></th>
					</tr>
				</thead>
				<tbody id="dataTable">
				<?php $this->widget('zii.widgets.CListView', array(
						'dataProvider'=>$dataProvider,
						'itemView'=>'_adlist',
						'ajaxUpdate'=>false,
						'template'=>'{items}'
				)); ?>
				</tbody>
			</table>
		</div>
		<br>
		<br>
		<div class="xls">
			<a href="/adv/ads/xls"><?=Yii::t('adv','excel_export')?></a>
		</div>
		<?php }else{
				$this->widget('NoContent');
			}?>
	</div>
</div>